﻿using System;
using System.Collections.Generic;

namespace OpenLS.Spreadsheet
{
    partial class Cell
    {
        internal IEnumerable<Column> GetColumns()
        {
            yield return _column;
                for (int i = 1; i < ColumnSpan; i++)
                {
                    yield return Worksheet.Columns[i + _column.Index];
                }
            
        }
        internal IEnumerable<Row> GetRows()
        {
            yield return _row;
                for (int i = 1; i < RowSpan; i++)
                {
                    yield return Worksheet.Rows[i + _row.Index];
                }
            
        }

    }
}